#include <stdio.h>

#define ELE_NUM 9

int main(int argc, char *argv[]) {
  int arr_ptr[ELE_NUM] = {8, 7, 2, 4, 9, 1, 5, 10, 70};
  int buff[ELE_NUM];
  int i;
  
  for(i=0; i<ELE_NUM; i++)
    printf("%d   ", arr_ptr[i]);
  printf("\n");
  
  exchange_sort(&buff, ELE_NUM, arr_ptr);
  for(i=0; i<ELE_NUM; i++) {
    printf("%d   ", buff[i]);
    buff[i] = 0;
  }
  printf("\n");
  
    
  recursive_sort(&buff, ELE_NUM, arr_ptr);
  for(i=0; i<ELE_NUM; i++) {
    printf("%d   ", buff[i]);
    buff[i] = 0;
  }
  printf("\n");

  return 0;
}

